﻿$('.htmlgrid tbody tr th:eq(0)').text("批复时间");


var cols = $('.htmlgrid tbody tr th').length;
var rows = $('.htmlgrid tbody tr').length;

for (var i = 1; i < cols; i++) {
    for (var j = 1; j < rows; j++) {
        year1 = $('.htmlgrid tbody tr:eq(' + j + ') td:eq(0)').text();
        year2 = year1;
        txt = $('.htmlgrid tbody tr:eq(' + j + ') td:eq(' + i + ')').text();
        txt = "<a href='M01_JDBView.aspx?y1=" + year1 + "&y2=" + year2 + "&w1=&w2=' target='_parent'>" + txt + "</a>";
        $('.htmlgrid tbody tr:eq(' + j + ') td:eq(' + i + ')').html(txt)
    }
}


for(var i=1;i<$('.htmlgrid tbody tr th').length-1;i++) {
    header = $('.htmlgrid tbody tr th:eq(' + i + ')').text();
    header =header+"(金戈)";
    $('.htmlgrid tbody tr th:eq(' + i + ')').text(header);
}
